package hello;

public interface StringConstants {
//nikkhil.srivastava@gmail.com
	
	public static final String asd="public class DroolsTest { \n"+"}\n";
	/*public static final String DRL_TEMPLATE="//package com.xebia.droolsunit;\n\n"+
			"import static org.junit.Assert.assertEquals;\n"+
			"import org.drools.KnowledgeBase;\n"+
			"import org.drools.KnowledgeBaseFactory;\n"+
			"import org.drools.builder.KnowledgeBuilder;\n"+
			"import org.drools.builder.KnowledgeBuilderError;\n"+
			"import org.drools.builder.KnowledgeBuilderErrors;\n"+
			"import org.drools.builder.KnowledgeBuilderFactory;\n"+
			"import org.drools.builder.ResourceType;\n"+
			"import org.drools.io.ResourceFactory;\n"+
			"import org.drools.logger.KnowledgeRuntimeLogger;\n"+
			"import org.drools.logger.KnowledgeRuntimeLoggerFactory;\n"+
			"import org.drools.runtime.StatefulKnowledgeSession;\n"+
			"import org.junit.Test;\n"+
			"public class MyDRLTest { \n"+
			"  @Test\n"+
			"  public  void testRule() {\n"+
			"      KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();\n"+
			"      kbuilder.add(ResourceFactory.newClassPathResource(\"com//xebia//Sample.drl\"), ResourceType.DRL);\n"+
			"      KnowledgeBuilderErrors errors = kbuilder.getErrors();\n"+
			"      if (errors.size() > 0) { \n"+
			"      	  for (KnowledgeBuilderError error: errors) {;\n"+
			"     		  System.err.println(error);\n"+
			"         throw new IllegalArgumentException(\"Could not parse knowledge. \");}\n"+
			"      }\n"+
			"      KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();\n"+
			"      kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());\n"+
			"      StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();\n"+
			"      KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, \"test\");\n"+
			"      //// insert the facts here \n\n\n\n"+
			"      ksession.fireAllRules();\n"+
			"      logger.close();\n"+
			"      }\n"+
			
			
			" }\n";
			*/
	public static final String DRL_TEMPLATE_ONE="import static org.junit.Assert.assertEquals;\n"+
			"import org.drools.KnowledgeBase;\n"+
			"import org.drools.KnowledgeBaseFactory;\n"+
			"import org.drools.builder.KnowledgeBuilder;\n"+
			"import org.drools.builder.KnowledgeBuilderError;\n"+
			"import org.drools.builder.KnowledgeBuilderErrors;\n"+
			"import org.drools.builder.KnowledgeBuilderFactory;\n"+
			"import org.drools.builder.ResourceType;\n"+
			"import org.drools.io.ResourceFactory;\n"+
			"import org.drools.logger.KnowledgeRuntimeLogger;\n"+
			"import org.drools.logger.KnowledgeRuntimeLoggerFactory;\n"+
			"import org.drools.runtime.StatefulKnowledgeSession;\n"+
			"import org.junit.Test;\n";
	
	
	public static final String DRL_TEMPLATE_TWO="  @Test\n"+
			"  public  void testRule() {\n"+
			"      KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();\n"+
			"      kbuilder.add(ResourceFactory.newClassPathResource(\"com//xebia//Sample.drl\"), ResourceType.DRL);\n"+
			"      KnowledgeBuilderErrors errors = kbuilder.getErrors();\n"+
			"      if (errors.size() > 0) { \n"+
			"      	  for (KnowledgeBuilderError error: errors) {;\n"+
			"     		  System.err.println(error);\n"+
			"         throw new IllegalArgumentException(\"Could not parse knowledge. \");}\n"+
			"      }\n"+
			"      KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();\n"+
			"      kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());\n"+
			"      StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();\n"+
			"      KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, \"test\");\n"+
			"      //// insert the facts here \n\n\n\n"+
			"      ksession.fireAllRules();\n"+
			"      logger.close();\n"+
			"      }\n"+
			
			
			" }\n";
	
}
